form2.onsubmit=function(evt){
    evt.preventDefault();

    console.log(666);

    var username1= username.value;
    var password1 = password.value;

    var username2=getCookie("username")

    var password2=getCookie("passowrd");

    if(username1==username2&&password1==password2){
        window.location.href="index.html";
    }
}